package main

import (
	"fmt"
	"github.com/astaxie/beego/logs"
)

var log *logs.BeeLogger

func InitLog() {
	log = logs.NewLogger(100)
	log.SetLogger("console", "")
	log.SetLogger("file", fmt.Sprintf(`{"filename":"%s","rotate":%t,"maxdays":%d}`, LOG_FILE, ROTATE, MAX_DAY))
}
